import { RouteRecordRaw, createRouter, createWebHashHistory } from 'vue-router';
// import Layout from '@/components/layout/index.vue';
const router = createRouter({
	history: createWebHashHistory(),
	routes: [
		{
			path: '/',
			component: () => import('../components/HelloWorld.vue')
		}
	],
});

// router.afterEach((to, from) => {
//   const toDepth = to.path.split('/').length
//   const fromDepth = from.path.split('/').length
//   to.meta.transition = toDepth < fromDepth ? 'slide-right' : 'slide-left'
// })

export default router;
